package com.carlife.ui;

import com.carlife.ui.widget.Line;
import com.carlife.ui.widget.LineChart;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;

public class MileageLineChart extends Activity {
	
	public static void show(Context context) {
        final Intent intent = new Intent(context, MileageLineChart.class);
        context.startActivity(intent);
    }

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		Line [] lineArray = new Line[] {
				
				new Line("1", "20090501", "4980"),
				new Line("1", "20090401", "3600"),
				new Line("1", "20090301", "3200"),
				new Line("1", "20090201", "1120"),
				new Line("1", "20090101", "1000"),
				new Line("2", "20090501", "5600"),
				new Line("2", "20090401", "4800"),
				new Line("2", "20090301", "4400"),
				new Line("2", "20090201", "3600"),
				new Line("2", "20090101", "3300")
		};
		
		
		setContentView(new LineChart(this, lineArray));
		
	}
	
	
	

}
